@import '~antd/es/style/themes/default.less';

.ant-layout-sider-children {
  background: #1F2E54;
}

.ant-layout-sider-children::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 224px;
  background: url(../src/assets/nav-bg.png) 0 0;
  background-size: 100% 100%;
}

.ant-pro-sider-menu {
  position: relative;
  z-index: 100;
}

.ant-layout-sider-children .ant-menu-item-selected,
.ant-menu-submenu-title:active {
  background: #182445 !important;

}

.ant-menu-submenu-title,
.ant-menu-item>a {
  color: #fff !important;
}

.ant-menu-item-selected>a {
  color: #3078FF !important;
}

.ant-menu-inline .ant-menu-selected::after,
.ant-menu-inline .ant-menu-item-selected::after {
  display: none !important;
}

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
  body .ant-design-pro>.ant-layout {
    min-height: 100vh;
  }
}
